package edu.cmu.ece.ds.droidchat.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import edu.cmu.ece.ds.droidchat.R;

public class MessageSendingBarView extends RelativeLayout {
    private EditText mMessageEditText;
    private Button mButton;

    public MessageSendingBarView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater layoutInflater = (LayoutInflater) context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View view = layoutInflater.inflate(R.layout.message_sending_bar, this);
        mMessageEditText = (EditText) view
                .findViewById(R.id.message_input_field);
        mButton = (Button) view.findViewById(R.id.message_send_button);
    }

    public EditText getMessageEditText() {
        return mMessageEditText;
    }

    public Button getButton() {
        return mButton;
    }

}
